package cn.tedu.spring.eg1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class TestEg1 {
    public static void main(String[] args) {
        ApplicationContext context= new
                AnnotationConfigApplicationContext("cn.tedu.spring");
        /*Product product =context.getBean(Product.class);
        System.out.println(product);
*/
        UserService bean = context.getBean(UserService.class);
        System.out.println(bean);
    }
}
